<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div class="alert alert-info">添加商品</div>
<form action="${pageContext.request.contextPath }/AddProductServlet" method="POST">
	<div class="row" style="margin-bottom: 15px;">
		<div class="col-md-6">
			<div class="form-group">
			  <label>商品名称</label>
			  <input type="text" name="name" class="form-control">
			</div>
			<div class="form-group">
			  <label>商品数量</label>
			  <input type="text" name="pnum" class="form-control">
			</div>
		</div>
		<div class="col-md-6">
			<div class="form-group">
			  <label>商品价格</label>
			  <input type="text" name="price" class="form-control">
			</div>
			<div class="form-group">
			  <label>商品类别</label>
			  <input type="text" name="category" class="form-control">
			</div>
		</div>
		<div class="col-md-12">
			<div class="form-group">
			  <label>商品图片</label>
			  <input type="url" name="imgurl" class="form-control">
			</div>
		</div>
		<div class="col-md-12">
			<div class="form-group">
			  <label>商品描述</label>
			  <textarea class="form-control" name="description" rows="3"></textarea>
			</div>
		</div>
		<div class="col-md-12 clearfix">
			<button type="button" class="btn btn-primary pull-right" onClick="history.back()">返回</button>
			<button type="reset" class="btn btn-primary pull-right" style="margin-right: 15px;">重置</button>
			<button type="submit" class="btn btn-primary pull-right" style="margin-right: 15px;">添加</button>
		</div>
	</div>
</form>